<template>
  <div class="empty-image">
    <img :src="require('@/assets/image/empty.png')"
         alt="" />
    <span>{{ text }}</span>
  </div>
</template>

<script>
export default {
  data () {
    return {
    };
  },
  props: {
    text: {
      type: String,
      default: '暂无数据~'
    }
  },
  created () { },
  methods: {}
}

</script>
<style lang='scss' scoped>
.empty-image {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 0.5rem;
  background-color: #ffffff;
  img {
    width: 2.14rem;
    height: 2.35rem;
    margin-bottom: 0.3rem;
  }
  span {
    font-size: 0.26rem;
    color: #666666;
  }
}
</style>